[C#] Specifying startup window/form location on multiple displays
Posted
by
JeffE
on Stack Overflow
See other posts from Stack Overflow
or by JeffE
Published on 2011-01-10T21:51:57Z
Indexed on
2011/01/10
21:53 UTC
Read the original article
Hit count: 133
I have two displays (two monitors) connected to my machine, and I noticed a strange thing happening today. I had an Explorer window open with my compiled exe on my primary display, and when I double-clicked it, it opened in the primary display (left monitor). However if I pressed enter to launch the executable, it started in the secondary display (right monitor). The window state of the initial form is maximized. Is there a way to tell C# to open the initial form in the primary display?
© Stack Overflow or respective owner